<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

     <script type="text/javascript" src="../../../../swordweb/core/jsimport/Sword.js"></script>

	 <script type="text/javascript">


	 	function ok(){
             var form=pc.getWidget('tree');

             if(!pc.getWidget('tree').validate())return;

             box.fireEvent("onOk",[
                form.getValue('code')
                 ,form.getValue('pcode')
             ]);
		}
		
		function cancel(){
             box.closePopUpBox();
		}
		
	     function before(){ //将数据写入到pageinit中
//             var param=box.options.param;

         }

         function success(){

        }




	 </script>

 </head>

<body>

<div sword='PageInit'
     id='PageInit'
onBefore="before()"
        ></div>



<div sword='SwordForm'
          name='tree'
          caption='新增一个树形行'
          layout="layer2"
          style='width:430;'
            >

    <div name="code"  caption="code" type="text" rule='must'></div>
    <div name="pcode"  caption="pcode" type="text" rule='must'></div>
</div>


<div align='center'>
    <input type='button' value="确定"  onclick="ok()">
    <input type='button' value="取消"  onclick="cancel()">
</div>

</body>
</html>





